package demo3;

public class Fish extends Animal implements ISwimming{
    public Fish(String name){
        super(name);
    }
    @Override
    public void swim() {
        System.out.println(this.name+" can swim");
    }
}
